package com.aos.erp.manager.remote.model.dto;

import com.aos.erp.manager.enums.message.PushType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("消息待发记录")
public class MessageRecordWaitPushItemDTO implements Serializable {
    @ApiModelProperty(value="消息ID",hidden=true)
    private long id = 0;
    @ApiModelProperty(value="驾校名称",hidden=true)
    private String mrDsName;    //
    @ApiModelProperty(value="接收人",hidden=true)
    private String mrRecipient = ""; // 接收人
    @ApiModelProperty(value="接收人（身份证号）",hidden=true)
    private String mrRecipientIdNo = "";
    @ApiModelProperty(value="接收人账号",hidden=true)
    private String mrRecipientAccount = "";
    @ApiModelProperty(value="发送人",hidden=true)
    private String mrSenderName = ""; // 发送人
    @ApiModelProperty(value="推送方式(app:APP；wx_public:微信公众号；wx_applet:微信小程序；sms:短信)",hidden=true)
    private PushType pushType = PushType.app;
    @ApiModelProperty(value="消息内容",hidden=true)
    private String mrContent = "";
    @ApiModelProperty(value="推送次数",hidden=true)
    private int mrPushCount = 0; // 推送次数
    @ApiModelProperty(value="提交时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date submitTime;    // 提交时间

    public String getPushTypeName() {
        return pushType.getDesc();
    }
}
